<?php
class CMS_Models_ProductCategory extends Zend_Db_Table_Abstract
{
	protected $_name = "product_category";
	public function __construct( )
   	{
   	 parent::__construct(array('table' =>$this->_name));
   	}
	
    public function getAll()
    {
      $contact = $this->fetchAll(array());
   	  return $contact;
    }

    public function getCategoryById($id)
    {
      	$category = $this->fetchRow("id = '$id'");
      	return $category;
    }
}